import LayoutFramework from "/src/layout/layout-framework.vue";
import { crudResources } from "/@/router/source/modules/crud";
import { sysResources } from "/@/router/source/modules/sys";
export const frameworkResource = [
  {
    title: "框架",
    name: "framework",
    path: "/",
    redirect: "/index",
    component: LayoutFramework,
    meta: {
      icon: "ion:accessibility"
    },
    children: [
      {
        title: "活动管理",
        name: "index",
        path: "/index",
        component: "/framework/home/index.vue",
        meta: {
          fixedAside: true,
          showOnHeader: false,
          icon: "ion:home-outline"
        }
      },
      {
        title: "评论管理",
        name: "comments",
        path: "/comments",
        component: "/framework/comments/index.vue",
        meta: {
          fixedAside: true,
          showOnHeader: false,
          icon: "ion:home-outline"
        }
      },
      {
        title: "账单管理",
        name: "bill",
        path: "/bill",
        component: "/framework/bill/index.vue",
        meta: {
          fixedAside: true,
          showOnHeader: false,
          icon: "ion:home-outline"
        }
      },
      {
        title: "房产管理",
        name: "property",
        path: "/property",
        component: "/framework/property/index.vue",
        meta: {
          fixedAside: true,
          showOnHeader: false,
          icon: "ion:home-outline"
        }
      },
      //lostfounds
      {
        title: "失物招领",
        name: "lostfounds",
        path: "/lostfounds",
        component: "/framework/lostfounds/index.vue",
        meta: {
          fixedAside: true,
          showOnHeader: false,
          icon: "ion:home-outline"
        }
      },
      //repair
      {
        title: "报修管理",
        name: "repair",
        path: "/repair",
        component: "/framework/repair/index.vue",
        meta: {
          fixedAside: true,
          showOnHeader: false,
          icon: "ion:home-outline"
        }
      },
      //staffs
      {
        title: "物业管理",
        name: "staffs",
        path: "/staffs",
        component: "/framework/staffs/index.vue",
        meta: {
          fixedAside: true,
          showOnHeader: false,
          icon: "ion:home-outline"
        }
      },
      //notices
      {
        title: "公告管理",
        name: "notices",
        path: "/notices",
        component: "/framework/notices/index.vue",
        meta: {
          fixedAside: true,
          showOnHeader: false,
          icon: "ion:home-outline"
        }
      },
      //enotices
      {
        title: "紧急通知",
        name: "enotices",
        path: "/enotices",
        component: "/framework/enotices/index.vue",
        meta: {
          fixedAside: true,
          showOnHeader: false,
          icon: "ion:home-outline"
        }
      },
      //userRelation
      {
        title: "用户物业",
        name: "userRelation",
        path: "/userRelation",
        component: "/framework/userRelation/index.vue",
        meta: {
          fixedAside: true,
          showOnHeader: false,
          icon: "ion:home-outline"
        }
      },
      //bgpics
      {
        title: "背景图片管理",
        name: "bgpics",
        path: "/bgpics",
        component: "/framework/bgpics/index.vue",
        meta: {
          fixedAside: true,
          showOnHeader: false,
          icon: "ion:home-outline"
        }
      },
      {
        title: "用户管理",
        name: "user",
        path: "/user",
        component: "/framework/user/index.vue",
        meta: {
          fixedAside: true,
          showOnHeader: false,
          icon: "ion:home-outline"
        }
      },
      ...crudResources,
      ...sysResources
    ]
  }
];
console.assert(frameworkResource.length === 1, "frameworkResource数组长度只能为1，你只能配置framework路由的子路由");
